package pers.xx.sbm.dao;

import org.springframework.stereotype.Repository;
import pers.xx.sbm.entity.User;

@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param userName 用户名
     * @description 根据用户名查找用户
     * @author XieXing
     * @date 2020/9/20 18:10
     */
    User findByUserName(String userName);


    /**
     * @param userPhone 用户手机号
     * @description 根据用户手机号查找用户
     * @author XieXing
     * @date 2020/9/20 18:10
     */
    User findByUserPhone(String userPhone);

}